// qrArray is an array that holds page
// objects representing each required
// Quick Review page in the module.
var qrArray = new Array();

////////////////////////
// Put your code here //
///////////////////////////////////////////////////////////////////////////
// Note to developer:  You need to add qrArray elements                  //
// to reflect the location of each required Quick Review in the module.  //
// Here is a sample array assignment: qrArray[0] = new Page(2,1,0,1);    //
///////////////////////////////////////////////////////////////////////////


////////////////////////
//    End your code   //
////////////////////////

// This is the function your quick review pages should call
// right after you mark it complete.  This function will handle
// marking the topic complete for you automagically.
function checkQuickReviews()
{
	var completeFlag = true;
	var currSection = getSection();
	var currTopic = getTopic();

	if (getTopicState(currSection, currTopic, 0))
	{
		return true;
	}

	for (var i=0;i<qrArray.length;i++)
	{
		if (qrArray[i].section == currSection && qrArray[i].topic == currTopic)
		{
			if (!getPageState(qrArray[i].section,qrArray[i].topic,qrArray[i].subtopic,qrArray[i].page))
			{
				completeFlag = false;
			}
		}
	}

	if (completeFlag)
	{
		markTopicComplete(currSection, currTopic, 0);
	}
	return completeFlag;
}


